import request from '@/utils/request'

const apiUrl = "/api/training-sign-in"

// 保存或更新培训签到
export function saveTrainingSignIn(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}


// 获取培训签到详情
export function getTrainingSignInById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}
// 分页查询培训签到列表
export function getTrainingSignInList(params) {
    return request({
        url: `${apiUrl}/list`,
        method: 'get',
        params
    })
}
// 批量删除培训签到
export function deleteTrainingSignIn(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 